<?php
require './admin/includes/db.php';

include_once('resources/UberGallery.php');

$mysqli = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME);

if ($mysqli->connect_errno) {
    echo "Failed to connect to MySQL with MySQLI: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}

$mysqli->set_charset("utf8");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <!--

Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
        -->
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
        <title>Android ISIMG : Hôtel du workshop</title>
        
        <link rel="stylesheet" type="text/css" href="esources/UberGallery.css" />
        <link rel="stylesheet" type="text/css" href="resources/colorbox/1/colorbox.css" />
        
        
        <link rel="stylesheet" href="./css/style.css" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" href="./css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="./css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
        
                <style>

            .header3 {
                
                font-family: inherit ;
                padding-top: 1em;
                font-size: 60%;
                
            }
            
            

        </style>

        
        <script type="text/javascript" src="./js/jquery.js"></script>
        <script type="text/javascript" src="./js/script.js"></script>
        
        
        <style>
 
            .preview
            {
                width:130px;
                border:solid 1px #dedede;
                
                float: left;
                
            }
            
             
            
            .actus_header {
                border: 1px solid #dfecab;

                border-left: none;
                border-right:  none;
                background-color: #dfecab;
                padding: 2px 1em;
                text-align: center;
                font-family:Georgia,serif;

                font-size: x-large;


                padding: 3px 3px;
            }

            .actus_body {
                border: 1px solid #dfecab;
                padding-right: 20px;
                padding-left: 20px;
                padding-top: 10px;
            }
            
            .actus_body2 {
                border: 1px solid #dfecab;
                padding-right: 20px;
                padding-left: 20px;
                padding-top: 10px;
            }
            
            .actus_body2 ul li {
                
                display: inline;
                background-image: none;
                text-align: left;
                margin: auto auto;
                
            }
            
        </style>
        
        <script type="text/javascript" src="resources/colorbox/jquery.colorbox.js"></script>
        
        <script type="text/javascript">
            $(document).ready(function(){
                $("a[rel='colorbox']").colorbox({maxWidth: "90%", maxHeight: "90%", opacity: ".5"});
            });
        </script>
        
    </head>
    <body>
        <div id="henispage-background-middle-texture">
            <div id="henismain">
                <div class="henisnav">
                    <div class="henisnav-l"></div>
                    <div class="henisnav-r"></div>
                    <div class="henisnav-wrapper">
                        <div class="henisnav-inner">
                            <div class="henisnav-center">
                                <ul class="henismenu">
                                    <li><a href="./index.php"><span class="l"> </span><span class="r"> </span><span class="t">Accueil</span></a></li>
                                    <li><a href="./actualites.php"><span class="l"> </span><span class="r"> </span><span class="t">Actualités</span></a></li>
                                    <li><a href="./programme.php"><span class="l"> </span><span class="r"> </span><span class="t">Programme</span></a></li>
                                    <li><a href="./hotel.php" class="active"><span class="l"> </span><span class="r"> </span><span class="t">Hôtel</span></a></li>
                                    <li><a href="./inscription.php"><span class="l"> </span><span class="r"> </span><span class="t">Inscription</span></a></li>
                                    <li><a href="./sponsors.php"><span class="l"> </span><span class="r"> </span><span class="t">Sponsors</span></a></li>
                                    <li><a href="./galerie.php"><span class="l"> </span><span class="r"> </span><span class="t">Galeries</span></a></li>
                                    <li><a href="./contact.php"><span class="l"> </span><span class="r"> </span><span class="t">Contact</span></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="henisheader">
                    <div class="henisheader-center">
                        <div class="henisheader-png"></div>
                        <div class="henisheader-jpeg"></div>
                    </div>
                    <div class="henisheader-wrapper">
                        <div class="henisheader-inner">
                            <script type="text/javascript" src="js/swfobject.js"></script>
                            <div id="henisflash-area">
                                <div id="henisflash-container">
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1540" height="385" id="henisflash-object">
                                        <param name="movie" value="images/flash.swf" ></param>
                                        <param name="quality" value="high" ></param>
                                        <param name="scale" value="exactfit" ></param>
                                        <param name="wmode" value="transparent" ></param>
                                        <param name="flashvars" value="color1=0xFFFFFF&amp;alpha1=.50&amp;framerate1=24&amp;loop=true&amp;wmode=transparent" ></param>
                                        <param name="swfliveconnect" value="true" ></param>
                                        <!--[if !IE]>-->
                                        <object type="application/x-shockwave-flash" data="images/flash.swf" width="1540" height="385">
                                            <param name="quality" value="high" ></param>
                                            <param name="scale" value="exactfit" ></param>
                                            <param name="wmode" value="transparent" ></param>
                                            <param name="flashvars" value="color1=0xFFFFFF&amp;alpha1=.50&amp;framerate1=24&amp;loop=true&amp;wmode=transparent" ></param>
                                            <param name="swfliveconnect" value="true" ></param>
                                            <!--<![endif]-->
                                            <div class="henisflash-alt"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></div>
                                            <!--[if !IE]>-->
                                        </object>
                                        <!--<![endif]-->
                                    </object>
                                </div>
                            </div>
                            <div class="henisheaderobject"></div>
                            <div class="henislogo">
                                <h1 id="name-text" class="henislogo-name"><a href="./index.php">2<sup>ème</sup> Workshop de l'ISIMG</a></h1>
                                <h2 id="slogan-text" class="henislogo-text">Développement d'applications mobiles pour terminaux sous ANDROID<p><div class="header3"> 17-20 Mars 2013 Mahdia</div>&nbsp;</p></h2>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="henissheet">
                    <div class="henissheet-tl"></div>
                    <div class="henissheet-tr"></div>
                    <div class="henissheet-bl"></div>
                    <div class="henissheet-br"></div>
                    <div class="henissheet-tc"></div>
                    <div class="henissheet-bc"></div>
                    <div class="henissheet-cl"></div>
                    <div class="henissheet-cr"></div>
                    <div class="henissheet-cc"></div>
                    <div class="henissheet-body">
                        <div class="heniscontent-layout">
                            <div class="heniscontent-layout-row">
                                <div class="henislayout-cell henissidebar1">
                                    <div class="henislayout-bg"></div>
                                    <div class="henisvmenublock">
                                        <div class="henisvmenublock-body">
                                            <div class="henisvmenublockcontent">
                                                <div class="henisvmenublockcontent-body">
                                                    <ul class="henisvmenu">
                                                        <li><a href="./index.php"><span class="l"> </span><span class="r"> </span><span class="t">Accueil</span></a></li>
                                    <li><a href="./actualites.php"><span class="l"> </span><span class="r"> </span><span class="t">Actualités</span></a></li>
                                    <li><a href="./programme.php"><span class="l"> </span><span class="r"> </span><span class="t">Programme</span></a></li>
                                    <li><a href="./hotel.php" class="active"><span class="l"> </span><span class="r"> </span><span class="t">Hôtel du workshop</span></a></li>
                                    <li><a href="./inscription.php"><span class="l"> </span><span class="r"> </span><span class="t">Inscription</span></a></li>
                                    <li><a href="./sponsors.php"><span class="l"> </span><span class="r"> </span><span class="t">Sponsors</span></a></li>
                                    <li><a href="./galerie.php"><span class="l"> </span><span class="r"> </span><span class="t">Galeries photos</span></a></li>
                                    <li><a href="./contact.php"><span class="l"> </span><span class="r"> </span><span class="t">Contact</span></a></li>
                                                    </ul>
                                                    <div class="cleared"></div>
                                                </div>
                                            </div>
                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                    <div class="henisblock">
                                        <div class="henisblock-body">
                                            <div class="henisblockheader">
                                                <div class="l"></div>
                                                <div class="r"></div>
                                                <h3 class="t">Comité de pilotage</h3>
                                            </div>
                                            <div class="henisblockcontent">
                                                <div class="henisblockcontent-tl"></div>
                                                <div class="henisblockcontent-tr"></div>
                                                <div class="henisblockcontent-bl"></div>
                                                <div class="henisblockcontent-br"></div>
                                                <div class="henisblockcontent-tc"></div>
                                                <div class="henisblockcontent-bc"></div>
                                                <div class="henisblockcontent-cl"></div>
                                                <div class="henisblockcontent-cr"></div>
                                                <div class="henisblockcontent-cc"></div>
                                                <div class="henisblockcontent-body">
                                                    <ul>
                                                        <?php
                                                        $sql1 = "select nom, prenom, url from and_comite where pilote = 1";

                                                        $result1 = $mysqli->query($sql1);


                                                        while ($row = $result1->fetch_assoc()) {
                                                            ?>

                                                            <li><span style="color: rgb(39, 62, 20); line-height: normal; ">
                                                                    <a href="<?php echo $row['url']; ?>" target="_blank" >
                                                                        <?php echo ucfirst($row['prenom']); ?>&nbsp;<?php echo strtoupper($row['nom']); ?>
                                                                    </a>
                                                                </span>
                                                            </li>

                                                            <?php
                                                        }
                                                        ?></ul>
                                                    <div class="cleared"></div>
                                                </div>
                                            </div>
                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                    <div class="henisblock">
                                        <div class="henisblock-body">
                                            <div class="henisblockheader">
                                                <div class="l"></div>
                                                <div class="r"></div>
                                                <h3 class="t">Comité d'organisation</h3>
                                            </div>
                                            <div class="henisblockcontent">
                                                <div class="henisblockcontent-tl"></div>
                                                <div class="henisblockcontent-tr"></div>
                                                <div class="henisblockcontent-bl"></div>
                                                <div class="henisblockcontent-br"></div>
                                                <div class="henisblockcontent-tc"></div>
                                                <div class="henisblockcontent-bc"></div>
                                                <div class="henisblockcontent-cl"></div>
                                                <div class="henisblockcontent-cr"></div>
                                                <div class="henisblockcontent-cc"></div>
                                                <div class="henisblockcontent-body">
                                                    <ul>
                                                        <?php
                                                        $sql = "select nom, prenom, url from and_comite where pilote = 0 order by prenom, nom";

                                                        $result = $mysqli->query($sql);


                                                        while ($row = $result->fetch_assoc()) {
                                                            ?>

                                                            <li><span style="color: rgb(39, 62, 20); line-height: normal; ">
                                                                    <a href="<?php echo $row['url']; ?>" target="_blank" >
                                                                        <?php echo ucfirst($row['prenom']); ?>&nbsp;<?php echo strtoupper($row['nom']); ?>
                                                                    </a>
                                                                </span>
                                                            </li>

                                                            <?php
                                                        }
                                                        ?>

                                                    </ul>
                                                    <div class="cleared"></div>
                                                </div>
                                            </div>
                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                    <div class="cleared"></div>
                                </div>
                                <div class="henislayout-cell heniscontent">
                                    <div class="henispost">
                                        <div class="henispost-tl"></div>
                                        <div class="henispost-tr"></div>
                                        <div class="henispost-bl"></div>
                                        <div class="henispost-br"></div>
                                        <div class="henispost-tc"></div>
                                        <div class="henispost-bc"></div>
                                        <div class="henispost-cl"></div>
                                        <div class="henispost-cr"></div>
                                        <div class="henispost-cc"></div>
                                        <div class="henispost-body">
                                            <div class="henispost-inner henisarticle">
                                                <div class="henispostmetadataheader">
                                                    <h2 class="henispostheader">Hôtel du Workshop</h2>
                                                </div>
                                                <div class="henispostcontent">
                                                    <br />
                                                    <div class="actus_header">Présentation</div>
                                                    <div class="actus_body">
                                                        <p>
                                                            <img src="http://03409b6.netsolhost.com/nourpalace2012w/fr/images/temp_img_2.jpg" class="preview" />
                                                            
                                                            
                                                            <br />Le Nour Palace rénové en 2012 est situé au bord d'une magnifique plage de sable fin, une des plus belles de la côte Tunisienne, chaises longues et parasols.
                                                            <br />Vous y trouverez d’activités de loisirs ainsi qu'un centre de bien être avec thalassothérapie, spa et fitness, pitch & putt golf, bowling, plusieurs piscines et un espace pour les enfants.</p>
                                                        
                                                        <br />
                                                        <ul style="padding-left: 15px"><li><b>Hôtel :</b> Nour Palace Resort and Thalasso</li>
                                                                <li><b>Catégorie :</b> 5*</li>
                                                                <li><b>Ouverture :</b> Mai 2002</li>  
                                                                <li><b>Adresse :</b> BP 79  -  Zone T ouristique,  5100 Mahdia – Tunisie</li>
                                                                
                                                             </ul>
                                                        <br />
                                                        <ul style="padding-left: 15px">
                                                            <li><a href="http://www.nourpalaceresort.com/" target="_blank">Site Web de l'hôtel.</a></li>
                                                            <li><a href="http://03409b6.netsolhost.com/nourpalace2012w/fr/fr.pdf" target="_blank">Télécherger la fiche technique de l'hôtel.</a></li>
                                                            
                                                        </ul>
                                                        <br />
                                                        <br />
                                                    </div>
                                                    <br /><br />
                                                    <div class="actus_header">Photos</div>
                                                    <div class="actus_body2">
                                                    <p>
                                                        <?php
                                                        
                                                        $galleryhotel = UberGallery::init()->createGallery('photos_hotel');
                                                        ?>
                                                        <br />
                                                    </p>
                                                </div>
                                                    
                                                    <p><br /></p>
                                                </div>
                                                <div class="cleared"></div>
                                            </div>
                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                    <div class="cleared"></div>
                                </div>
                            </div>
                        </div>
                        <div class="cleared"></div>
                        <div class="cleared"></div>
                    </div>
                </div>
                <div class="henisfooter">
                    <div class="henisfooter-body">
                        <div class="henisfooter-text">
                            <p><a href="http://www.isimg.rnu.tn/" target="_parent">Institut Supérieur d'Informatique et de Multimédia de Gabès (ISIMG)</a> vous souhaite la bienvenue</p>
                            <p>Auteur : <a href="http://www.isimg.rnu.tn/fra/profil/heni_saber" target="_blank">henis</a></p>
                            <div class="cleared"></div>
                            <p class="henispage-footer"></p>
                        </div>
                        <div class="cleared"></div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<?php
$mysqli->close();
include './admin/includes/count_visitors_class.php'; //classes is the map where the class file is stored
// create a new instance of the count_visitors class.
$my_visitors = new Count_visitors;

$my_visitors->delay = 1; // how often (in hours) a visitor is registered in the database (default = 1 hour)
$my_visitors->insert_blank_visit(); // That's all, the validation is with this method, too.
?>